//package com.lhx.common.swagger.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.service.Contact;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;
//
//@Configuration
//@EnableSwagger2
//public class SwaggerConfig {
//    @Bean
//    public Docket api1() {
//        return new Docket(DocumentationType.SWAGGER_2)
//                .select()
//                .apis(RequestHandlerSelectors.any())
//                .paths(PathSelectors.any())
//                .build()
//                .apiInfo(apiInfo());
//    }
//
//    private ApiInfo apiInfo() {
//        return new ApiInfoBuilder()
//                .title("五万高薪") // 设置文档标题
//                .description("五万高薪")
//                .version("1.0.0") // API版本
//                .termsOfServiceUrl("http://your_terms_of_service_url") // 服务条款URL
//                .contact(new Contact("李洪祥", "联系人网站URL", "2791004706@qq.com"))
//                .license("许可协议") // 许可证
//                .licenseUrl("许可协议URL") // 许可证URL
//                .build();
//    }
//}
